package com.sgzn.sgpay.web.request.Impl;

import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

/**
 * 设备分页查询请求
 * @author zhongzhongyong
 * @version Id: DeviceQueryPageRequest.java, v 0.1 2018/5/1 11:01 zhongzhongyong Exp $$
 */
@Data
@ToString(callSuper = true)
public class DeviceQueryPageRequest extends MerchantBaseRequest {

    @NotBlank(message = "pageSize不允许为空")
    private String pageSize;

    @NotBlank(message = "pageNum不允许为空")
    private String pageNum;

    /**
     * 设备ID
     */
    private String deviceId;

    /**
     * 设备名称
     */
    private String deviceName;

    /**
     * 归属门店ID
     */
    private String shopId;

    /**
     * 设备状态
     */
    @Pattern(regexp = "01|02",message = "设备状态入参格式错误")
    private String state;
}

